Skip to content

ci: lint workflows with actionlint and zizmor - #2

Merged
jmeridth merged 1 commit into
mainfrom
ci/lint
Sep 26, 2026
Merged

jmeridth merged 1 commit into
mainfrom
ci/lint

Conversation

@jmeridth

Copy link
Copy Markdown
Member

What/Why

Lint every workflow in this repo on each PR with actionlint and zizmor. Every repo that calls these workflows inherits their bugs, so this becomes the required lint check on main.

Proof it works

  • Local run on this branch: actionlint and zizmor both pass.
  • Local check with a deliberately bad workflow (pull_request_target, an unpinned actions/checkout@v4, a template injection, and a syntax error): actionlint exited 1, and zizmor reported dangerous-triggers, template-injection, and unpinned-uses errors (exit 14). The file was deleted before committing.

Risk + AI role

Low. CI only. Claude Opus 5.5 wrote the workflow and verified both pins: actionlint 1.7.12 by Docker image digest, and zizmor-action v0.6.4 by commit SHA running zizmor 1.30.1.

Review focus

  • actionlint is pinned by image digest (docker://...@sha256:). I have not confirmed Dependabot bumps docker:// references in workflows, so this pin may need manual updates.

## What/Why

Lint every workflow in this repo on each PR with actionlint and zizmor. Every repo that calls these workflows inherits their bugs, so this becomes the required `lint` check on `main`.

## Proof it works

- Local run on this branch: actionlint and zizmor both pass.
- Local check with a deliberately bad workflow (`pull_request_target`, an unpinned `actions/checkout@v4`, a template injection, and a syntax error): actionlint exited 1, and zizmor reported `dangerous-triggers`, `template-injection`, and `unpinned-uses` errors (exit 14). The file was deleted before committing.

## Risk + AI role

Low. CI only. Claude Opus 5.5 wrote the workflow and verified both pins: actionlint 1.7.12 by Docker image digest, and zizmor-action v0.6.4 by commit SHA running zizmor 1.30.1.

## Review focus

- actionlint is pinned by image digest (`docker://...@sha256:`). I have not confirmed Dependabot bumps `docker://` references in workflows, so this pin may need manual updates.

Signed-off-by: jmeridth <jmeridth@gmail.com>
@jmeridth jmeridth self-assigned this Sep 26, 2026
@jmeridth
jmeridth marked this pull request as ready for review September 26, 2026 13:11
@jmeridth
jmeridth merged commit 7312db5 into main Sep 26, 2026
1 check passed
@jmeridth
jmeridth deleted the ci/lint branch September 26, 2026 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant